// 员工权限组
import request from "@/utils/https/requests";

// 列表
export function adminPermissionGroupList(data: any) {
    return request({
        url: "/adminPermissionGroup/list", method: "post", data,
    });
}

// 添加
export function postAddAdminPermissionGroup(data: any) {
    return request({
        url: "/adminPermissionGroup/postAdd", method: "post", data,
    });
}

// 修改
export function postModAdminPermissionGroup(data: any) {
    return request({
        url: `/adminPermissionGroup/postMod/{${data.id}`, method: "post", data,
    });
}

// 删除
export function postDeleteAdminPermissionGroup(id: string) {
    return request({
        url: `/adminPermissionGroup/postDelete/${id}`, method: "post",
    });
}

// 逻辑 删除
export const postLogicDeleteAdminPermissionGroup = (id) => {
    return request({
        url: `/adminPermissionGroup/postLogicDelete/${id}`, method: 'post'
    })
}

// 详情
export function adminPermissionGroupDetail(id: string) {
    return request({
        url: `/adminPermissionGroup/detail/${id}`, method: "post",
    });
}